/**
 * @description blog 表， 和User 表是多对一关系
 * @author 宫彦胜 
 */

const seq = require('../seq')
const { STRING, TEXT, NUMBER, DECIMAL, INTEGER } = require('../type')

const Blog = seq.define('blog',{
  title: {
    type: STRING, 
    allowNull: false
  },
  content: {
    type: TEXT,
    allowNull: true,
    comment: '文本内容'
  },
  userId: {
    type: INTEGER,
    allowNull: true
  }
})



module.exports = Blog
 
